package main

import "fmt"

func main() {

	num1 := 100
	fmt.Printf("num1的类型%T,num1的值=%v,num1的地址%v \n", num1, num1, &num1)
	
	num2 := new(int) // *int
	//num2的类型%T => *int
	//num2的值 = 地址 0xc0420140b8
	//num2的地址%v = 地址 0xc042004030
	//num2指向的值 = 0
	*num2 = 100
	fmt.Printf("num2的类型%T,num2的值=%v,"+
		"num2的地址%v num2这个指针，指向的值=%v \n",
		num2, num2, &num2, *num2)
}
